//
//  CustomImageView.m
//  棒棒哒
//
//  Created by rimi on 15/8/5.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import "CustomImageView.h"

@implementation CustomImageView

+ (UIImageView *)imageViewWithFrame:(CGRect)frame
                              Image:(UIImage *)image
                              Alpha:(CGFloat)alpha
                       CornerRadius:(CGFloat)radius
                        BorderWidth:(CGFloat)width
                        BorderColor:(UIColor *)borderColor

{
    UIImageView *imageView = [[UIImageView alloc]initWithFrame:frame];
    imageView.image = image;
    imageView.alpha = alpha;
    imageView.layer.cornerRadius = radius;
    imageView.layer.borderWidth = width;
    imageView.layer.borderColor = borderColor.CGColor;
    return imageView;
}


@end
